package com.cqs.learning.spring.cloud.producer.service;

/**
 * 熔断
 * 降级
 *
 * @author lixw
 * @date 2020/3/24 14:26
 */
public interface ServiceDemo {

    String fuseAndDegrade(int num);

    String fuseAndDegrade2(int num);

    int cnt();

    int cnt2();

    /**
     * 授权限流
     *
     * @param origin
     * @return
     */
    int flowAuthority(String origin);
}
